package com.medium.house.entity;

import com.medium.house.enums.BasicStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
public class WechatUser implements Serializable
{
    private long id;
    private String openid;
    private String unionid;
    private String sessionKey;
    private String mobile;
    private String name;
    private String nickName;
    private String avatarUrl;
    private int gender;
    private String city;
    private String province;
    private String country;
    private String language;
    private BasicStatusEnum status;
    private int type;
    private String remark;
    private Date createdAt;
    private Date updatedAt;

    public WechatUser initialize()
    {
        id                            = 0L;
        openid                        = "";
        unionid                       = "";
        sessionKey                    = "";
        mobile                        = "";
        name                          = "";
        nickName                      = "";
        avatarUrl                     = "";
        gender                        = 0;
        city                          = "";
        province                      = "";
        country                       = "";
        language                      = "";
        status                        = BasicStatusEnum.ENABLED;
        type                          = 0;
        remark                        = "";
        createdAt                     = new Date();
        updatedAt                     = new Date();
        return this;
    }
}